package com.liukai.novel_commons.utils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class MyInfoList {

    private static Map<String,String> myInfoMap = new HashMap<>();
    private static List<String> myInfoList = new ArrayList<>();

    private static List<String> settingList = new ArrayList<>();

    static {
        myInfoMap.put("setting","设置");
        myInfoMap.put("comments","我的评论");
        myInfoMap.put("teenagers","青少年模式");

        myInfoList.add("设置");
        myInfoList.add("我的评论");
        myInfoList.add("青少年模式");

        settingList.add("基本信息");
        settingList.add("账号与安全");
        settingList.add("夜间模式");

    }

    public static Map<String,String> getMyInfoMap(){
        return myInfoMap;
    }

    public static List<String> getMyInfoList(){
        return myInfoList;
    }


    /** 设置列表 **/
    public static List<String> getSettingList() {
        return settingList;
    }
    // 增加列表的某一项
    public static void addSettingList(String item){
        settingList.add(item);
    }
    // 移除设置列表的某一项
    public static void removeSettingList(String item){
        for (int i = 0; i < settingList.size(); i++) {
            if (settingList.get(i).equals(item)) {
                settingList.remove(i);
            }
        }
    }
}
